import tpl from './index.tpl'
import './index.scss'

import list from './list'

import { tplReplace } from '../../utils/tools';

export default () => {

    const listComponent = list(); 

    return {
        name: 'courseList',
        tpl (data) {
            return tplReplace(tpl, {
                list: listComponent.tpl(data)
            })
        }
    }
}